import { createRouter, createWebHistory } from 'vue-router';
import { chartRouters } from './chartRouter';
import HomeView from '../views/home.vue';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/:pathMatch(.*)*',
      name: 'Not Found',
      component: () => import('../views/404/index.vue')
    },
    ...chartRouters
  ]
});

export default router;
